<?php
    session_start();
    include_once '../../../../controlador/php/conexion/Conexion.php';
    $con = new Conexion();
    
    $usu = $_REQUEST['usu'];
    
    $consu = "select COUNT(*) as n, usu_oid 
              from usuario 
              where usu_usuario = '".$usu."' 
              group by usu_oid";
    
    $res = $con->query($consu);
    
    while($res2 = mssql_fetch_array($res)){
        $n = $res2['n'];
        $oidu = $res2['usu_oid'];
    }
    
    print_r(json_encode(array('n'=>$n,'oidu'=>$oidu)));
    
    
    $con->cerrarConexion(); 
?>